package soft.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import soft.mapper.StudentMapper;
import soft.pojo.Student;
import soft.service.StudentService;


@Service
public class StudentServiceImpl implements StudentService {
	@Autowired
	private StudentMapper studentMapper;


	@Override
	public Student getById(String sId) {
		return studentMapper.getById(sId);
	}

	@Override
	public Student login(String sId, String password) {
		// TODO Auto-generated method stub
		return studentMapper.login(sId, password);
	}

	@Override
	public Student getByName(String sName) {
		return studentMapper.getByName(sName);
	}

	@Override
	public boolean insert(Student bean) {
		return studentMapper.insert(bean);
	}

	@Override
	public boolean update(Student bean) {
		// TODO Auto-generated method stub
		return studentMapper.update(bean);
	}

	@Override
	public List<Student> getList() {
		// TODO Auto-generated method stub
		return studentMapper.getList();
	}

	@Override
	public boolean deleteById(String sId) {
		// TODO Auto-generated method stub
		return studentMapper.deleteById(sId);
	}

	
	


}
